package whf.survey.entity;

import whf.framework.security.entity.Dept;

public class SurveyPublish extends whf.framework.entity.AbstractEntity implements
		ISurveyPublish {

	private static final long serialVersionUID = 0;

	// 调查
	private whf.survey.entity.Survey survey;

	// ---------- methods ----------

	public SurveyPublish(){
		//
	}
	
	public SurveyPublish(Survey survey, Dept dept){
		super.setDept(dept);
		this.survey = survey;
		this.setName(survey.getName() + "->" + dept.getName());
	}
	
	public void setSurvey(whf.survey.entity.Survey survey) {
		this.survey = survey;
	}

	public whf.survey.entity.Survey getSurvey() {
		return this.survey;
	}

}